package com.ttbj.exception;

import com.ttbj.product.bean.dto.ViewData;

public class WebException extends Exception   {
	
	 
	private static final long serialVersionUID = -3987874481158803840L;
	/*
	 *系统提示信息 
	 */
	private ViewData model;
	public WebException() {
	}
	public WebException  (ViewData model) {
		super(model.getMessage());
		this.model = model;
	}
	public WebException  (ViewData model,String errorMessage) {
		super(errorMessage);
		this.model = model;
	}

	public ViewData getModel() {
		return model;
	}

	public void setResultInfo(ViewData model) {
		this.model = model;
	}
}
